package grape.base.rest.message.form;
import grape.common.rest.form.BaseForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
 * <p>
 * 消息内容模板表
 * </p>
 *
 * @author yangwei
 * @since 2020-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="消息内容模板添加表单对象")
public class MessageTemplateCreateForm extends BaseForm {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message="编码为空")
    @ApiModelProperty(value = "编码，不能重复",required = true)
    private String code;

    @NotEmpty(message="模板名称不能为空")
    @ApiModelProperty(value = "模板名称",required = true)
    private String name;

    @ApiModelProperty(value = "标题模板")
    private String templateTitle;

    @NotEmpty(message="内容模板不能为空")
    @ApiModelProperty(value = "内容模板",required = true)
    private String templateContent;

    @ApiModelProperty(value = "消息分类，字典")
    private String typeDictId;

    @ApiModelProperty(value = "备注")
    private String remark;


}
